/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cput.tp.patterns.creational.prototype;

/**
 *
 * @author Malotana
 */
public class RunPrototype {
    public static void main(String [] args){
        Person person = new Person("Dave");
        System.out.println(""+person);
        Person person1 =(Person) person.doClone();
        System.out.println(""+person1);
        
        Dog odg1 = new Dog("woof");
        System.out.println("Name: "+odg1);
        Dog dog2 = (Dog) odg1.doClone();
        System.out.println("Name: "+dog2);
    }
}
